package pl.edu.agh.hollonCommision.graph;

import java.util.HashMap;
import java.util.Map;

import dtp.commission.Commission;

public class Vertex {

	Commission comm;
	private Map<String, Double> metrics;
	private String currentMetric;

	public Vertex(Commission comm) {
		this.comm = comm;
		metrics = new HashMap<String, Double>();
		metrics.put("degree", 0.0);
		metrics.put("current", 1.0);
		currentMetric="degree";
	}

	public int getID() {
		return comm.getID();
	}
	
	public Commission getCommision(){
		return comm;
	}
	
	public void setCurrentMetric(String currentMetric) {
		this.currentMetric = currentMetric;
	}
	
	public double getCurrentMetricNormalizedValue(){
		return metrics.get("current");
	}
	
	public void setCurrentMetricNormalizedValue(double value) {
		metrics.put("current", value);
	}
	
	public void setMetricValue(String metricName, double value){
		metrics.put(metricName, value);
	}
	
	public double getMetricValue(String metricName){
		return metrics.get(metricName);
	}


	
}
